package com.ghf;
import android.util.Log; 
import com.ghf.data.GGoogleWeather;

import android.app.Activity;
import android.os.Bundle;

public class GWeatherActivity extends Activity {
    static final String ACTIVITY_TAG = "GHF_DEBUG";

	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.gwidget);
        GNet gn = new GNet();
        GGoogleWeather w;
		try {
			w = gn.getWeather("beijing");
			Log.d(GWeatherActivity.ACTIVITY_TAG,w.getCursorday().getDesc());
		} catch (Exception e) {
			// TODO Auto-generated catch block
			Log.d(GWeatherActivity.ACTIVITY_TAG,e.getMessage());
			e.printStackTrace();
		}
        
    }
}